<?php
namespace app\common\controller;

use think\Controller;

class Home extends Controller
{
    //不需要登录
    protected $noNeedLogin = [];

    protected function _initialize()
    {
        $this->isLogin();
    }

    public function isLogin()
    {
        $business = cookie('business') ?? [];

        halt($business);
    }
}